<template>
  <div class="trend">
    <x-header :left-options="{backText: ''}">ETF</x-header>
    <div style="padding-left:10px;" id="veCandelBox">
      <Chart></Chart>
    </div>
    <div style="position:absolute;background:red;height:340px;top: 40px;opacity: 0;width: 100%;" id="bgColor">

    </div>
    <div class="transactionRecord">
      <span style="color:#999;font-size:13px;margin-left:15px;height: 30px;line-height: 30px;display: block">最近交易记录</span>
      <div>
        <div class="recodeDetail">
          <img src="../../assets/lower.png" alt="" width="20" height="20" style="margin-top:18px;">
          <div class="recodeDate">
            <span style="color:#666;font-size:15px;">fasdgsdhgs...sadfasdf</span>
            <span style="color:#999;font-size:11px;">2018/05/22</span>
          </div>
          <div class="recodeNumber lowerColor">
            <span>-100</span>
          </div>
        </div>
        <div class="recodeDetail">
          <img src="../../assets/upper.png" alt="" width="20" height="20" style="margin-top:18px;">
          <div class="recodeDate">
            <span style="color:#666;font-size:15px;">fasdgsdhgs...sadfasdf</span>
            <span style="color:#999;font-size:11px;">2018/05/22</span>
          </div>
          <div class="recodeNumber upperColor">
            <span>+100</span>
          </div>
        </div>
      </div>
    </div>
    <div class="navBarTable">
      <div class="navBarTable1" @click="$router.push({ path: '/main/transferOut'})">
        <img src="../../assets/lowerWhite.png" alt="" width="20" height="20" style="vertical-align: middle;">
        <span style="vertical-align: middle;">
          充值
        </span>
      </div>
      <div class="navBarTable2" @click="$router.push({ path: '/main/turnIn'})">
        <img src="../../assets/upperWhite.png" alt="" width="20" height="20" style="vertical-align: middle;">
        <span style="vertical-align: middle;">
          提现
        </span>
      </div>
    </div>
  </div>
</template>


<script>
  import { XHeader } from 'vux'
  import Chart from '../common/chart.vue'  

  export default {
    data() {
      return {
      }
    },
    components: {
      XHeader,
      Chart
    }
  }
</script>

<style lang="less">
  body {
    background: #f6f6f6;
  }

  .trend .vux-header {
    background: #fff;
  }

  .trend .vux-header .vux-header-title {
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #000;
  }

  .trend .vux-header .vux-header-left .left-arrow:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #000;
    border-width: 1px 0 0 1px;
    -webkit-transform: rotate(315deg);
    transform: rotate(315deg);
    top: 8px;
    left: 7px;
  }

  .trend .recodeDetail {
    background: #fff;
    border-top: 1px solid #f6f6f6;
    height: 60px;
    padding: 0px 15px;
    position: relative;
  }

  .trend .recodeDate {
    position: absolute;
    left: 45px;
    top: 8px;
    span {
      display: block;
    }
  }

  .trend .recodeNumber {
    position: absolute;
    right: 15px;
    top: 18px;
    font-size: 15px;
  }

  .trend .upperColor {
    color: #77b3f9;
  }

  .trend .lowerColor {
    color: #ff1010;
  }

  .trend .navBarTable {
    position: fixed;
    z-index: 9999;
    bottom: 0px;
    height: 53px;
    width: 100%;
  }

  .trend .navBarTable1,
  .trend .navBarTable2 {
    width: 50%;
    background: #77b3f9;
    color: #fff;
    height: 55px;
    font-size: 20px;
    text-align: center;
    padding-top: 8px;
  }

  .trend .navBarTable2 {
    margin-left: 50%;
    margin-top: -63px;
    background: #fea620;
  }
</style>